const person = {
  name: "why",
  get aliasname() {
    return this.name + "123";
  },
};

let proxyPerson = new Proxy(person, {
  get(target, key, receiver) {
    console.log("get", key);
    //访问person（即this）.name不会触发get
    // 如果使用recevier 会触发get 但是也会导致死循环
    return Reflect.get(target, key, receiver);
  },
});

console.log(proxyPerson.aliasname);
